package com.robooot.business_counter.model;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * 分页数据返回值
 * @author liansx
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
public class PageHelpResult {

    private List<?> list;

    private int totalCount;

    private int totalPage;

    private int current;

    private Object extra;

    public PageHelpResult(List<?> list, int totalCount, int totalPage, int current) {
        this.list = list;
        this.totalCount = totalCount;
        this.totalPage = totalPage;
        this.current = current;
    }

    public PageHelpResult(List<?> list, int totalCount, int totalPage, int current, Object object) {
        this.list = list;
        this.totalCount = totalCount;
        this.totalPage = totalPage;
        this.current = current;
        this.extra = object;
    }

    public List<?> getList() {
        return list;
    }

    public void setList(List<?> list) {
        this.list = list;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public Object getExtra() {
        return extra;
    }

    public void setExtra(Object extra) {
        this.extra = extra;
    }
}
